// currently used as a base for special scripts


beginobjectscript; // talking object

variables;
	short last_abil;
short effect_type;
short duration;

body;

beginstate INIT_STATE;
	set_obj_act_at_dist(ME,1);
	last_abil = get_current_tick();
	break;

beginstate DEAD_STATE;
	break;

beginstate START_STATE; 
	if (char_ok(10700) == FALSE)
		end();
	if (get_attitude(10700) < 10)
		end();
	if (tick_difference(last_abil,get_current_tick()) > 0) {
		last_abil = get_current_tick();
		
		//if (difficulty() < 2) 
		//	effect_type = 1;
			//else 
		effect_type = 3;

//print_num(1000 + gf(2,26));
		
		duration = 2;
		if (is_town())
			duration = 3;
		if (gf(56,20) == 0)
			radiate_ground_effect(my_loc_x(),my_loc_y(),effect_type,2,6);

			
		}
	break;

beginstate USE_STATE;
	print_str_color("The crystal glows with a blue light. It's icy cold, despite the nearby lava.",2);
break;
